package cn.lingyangwl.agile.msg.push.model.entity;

import cn.lingyangwl.agile.model.*;
import cn.lingyangwl.agile.model.constants.*;
import cn.lingyangwl.agile.tenant.core.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.Getter;
import lombok.Setter;

/**
 * 通知的渠道
 *
 * @author shenguangyang
 */
@Getter
@Setter
@TableName(value = "mps_notice_channel")
@DataIsolation(filterTenant = true, tableName = "mps_notice_channel")
public class NoticeChannel extends BasePlusPO {
    @TableId
	private Long id;

	/**
	 * 第三方模板id
	 */
	@DataPartIsolation(level = DataIsolateLevel.MAIN)
	private String templateId;
	
	/**
	 * 通知id, msg_notice的主键
	 */
	private Long noticeId;
	
	/**
	 * 渠道类型
	 */
	private String channelType;
	
	/**
	 * 设置
	 */
	@DataPartIsolation(level = DataIsolateLevel.MAIN)
	private String settings;
	
	/**
	 * 状态
	 */
	@DataPartIsolation
	private String status;

	private Boolean deleted;

    public static LambdaQueryWrapper<NoticeChannel> lqw() {
		return Wrappers.lambdaQuery();
	}
}
